package NGUYENXUANTUNG.OOP.DEMO;

public class Tringle {
//1.Datafield
	double side01;
	double side02;
	double side03;
	
//2.Constructor
	public Tringle(){
}
	public Tringle(double side01, double side02, double side03){
		this.side01 = side01;
		this.side02 = side02;
		this.side03 = side03;
	}
	public double getSide01() {
		return side01;
	}
	public void setSide01(double side01) {
		this.side01 = side01;
	}
	public double getSide02() {
		return side02;
	}
	public void setSide02(double side02) {
		this.side02 = side02;
	}
	public double getSide03() {
		return side03;
	}
	public void setSide03(double side03) {
		this.side03 = side03;
	}
	
	public double Area(){
		double a = ( side01 + side02 + side03)/2;
		return Math.sqrt(a*(a-side01)*(a-side02)*(a-side03));
	}

	
}

